import service from "../utils/service.ts";

export const getGoodsDetail = (goodsId: number) => {
    return service.get('/goods/get', { params: { goodsId } })
}

export const getRandomGoods = (count) => {
    return service.get('/goods/get/random/goods', { params: { count }})
}

export const getGoodsSpecs = (data : any) => {
    return service.get('/specs/get/goodsBySpecs', {
        params: data
    })
}